
import  requests
def create_topic(topicdata):
    # topic_data = {
    #     "accesstoken": 'aa0b5668-fe25-41bd-9bec-ce8207e2294b',
    #     "title": "aaaaa",
    #     "tab": "ask",
    #     "content": "ccccccccccccc"
    # }
    url = "http://49.233.108.117:3000/api/v1/topics"
    r = requests.post(url=url, json=topicdata)
    return r


def topic_detail(id):
    url = 'http://49.233.108.117:3000/api/v1/topic/'+id
    return requests.get(url)
def get_token():
    return "aa0b5668-fe25-41bd-9bec-ce8207e2294b"